package flex.cc.uac.enums;


public enum UacMenuStatusEnum {

	ENABLE("ENABLE", "启用"),

	DISABLE("DISABLE", "禁用");


	String type;

	String name;

	UacMenuStatusEnum(String type, String name) {
		this.type = type;
		this.name = name;
	}

	public String getType() {
		return type;
	}


	public String getName() {
		return name;
	}


	public static String getName(String type) {
		for (UacMenuStatusEnum ele : UacMenuStatusEnum.values()) {
			if (type.equals(ele.getType())) {
				return ele.getName();
			}
		}
		return null;
	}

	public static UacMenuStatusEnum getEnum(String type) {
		for (UacMenuStatusEnum ele : UacMenuStatusEnum.values()) {
			if (type.equals(ele.getType())) {
				return ele;
			}
		}
		return UacMenuStatusEnum.ENABLE;
	}
}
